﻿package mortal.game.view.common.cd.effect
{
    import flash.display.*;
    import flash.events.*;

    public class CDDrugFreezingEffect extends DrugCD implements ICDEffect
    {
        private var _maskBitmap:Bitmap;
        private var _registed:Boolean = false;

        public function CDDrugFreezingEffect()
        {
            mouseChildren = false;
            mouseEnabled = false;
            return;
        }// end function

        public function set registed(param1:Boolean) : void
        {
            this._registed = param1;
            return;
        }// end function

        public function get registed() : Boolean
        {
            return this._registed;
        }// end function

        public function setSize(param1:Number, param2:Number) : void
        {
            this.width = param1;
            this.height = param2;
            return;
        }// end function

        public function onTimer(param1:int) : void
        {
            this.gotoAndStop(param1);
            if (param1 > 100)
            {
                this.reset();
                this.dispatchEvent(new Event(Event.COMPLETE));
            }
            return;
        }// end function

        public function get cdEffectTimerType() : String
        {
            return CDEffectTimerType.Percentage;
        }// end function

        public function reset() : void
        {
            this.gotoAndStop(1);
            return;
        }// end function

    }
}
